﻿/*-----------------------------------/
/* Create By.Ben 20181206
/*----------------------------------*/
var layoutTitleVue = new Vue({
    el: "#layoutTitle",
    data: {
        name: "TPM Equipment Management System"
    }
});

var layoutUserInfoVue = new Vue({
    el: "#layoutUserInfo",
    data: {
        user: {}
    },
    methods: {
        EditUser: function (userID) {
            OpenAzModal("编辑用户Edit user", "/Account/Detail?UserID=" + userID);
        }
    },
    mounted: function () {
        this.user = GlobalUser.getUserInfo();
    }
})

var layoutLeftMenuVue = new Vue({
    el: "#layoutLeftMenu",
    data: {
        menus: []
    },
    method: {},
    created: function () {
        //页面加载前初始的数据
        InitialAztechScript();
    },
    mounted: function () {
        //页面加载后初始的数据
        this.menus = GlobalMenu.GetSystemMenus();
        //console.log(this.menus)
    }
});

